package com.dms.modules.order.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel("订单提交DTO")
public class OrderSubmitDTO {
    @ApiModelProperty("是否使用购物车")
    private Boolean useCart = false;

    @ApiModelProperty("购物车项ID列表")
    private List<Long> cartItemIds;

    @Valid
    @ApiModelProperty("直接购买的商品")
    private OrderItemDTO item;

    @NotNull(message = "收货地址ID不能为空")
    @ApiModelProperty("收货地址ID")
    private Long addressId;

    @ApiModelProperty("优惠券ID")
    private Long couponId;

    @ApiModelProperty("订单备注")
    private String remark;

    // 可扩展发票等字段
} 